package ywh.event
{
	import flash.events.Event;
	
	/**
	 * 课程核心方法
	 * @author WilliWHYang
	 */
	public class SyncEvent extends Event
	{
		public static const START:String = "core start";
		/**
		 * 即将同步，非常重要
		 * 1.流如果需要转换时间，则应注册此事件;
		 * 2.如果需要组织本次同步，应该需要调用content.preventSyncOnce方法;
		 */
		public static const PRE_SYNC:String = "PRE_SYNC";
		public static const SYNC_LIST:String = "SYNC_LIST";
		/**
		 * 正在同步
		 */
		public static const SYNC_PLAYER:String = "SYNC_PLAYER";
		private var _time:Number;
		
		public function SyncEvent(type:String, time:Number)
		{
			super(type, false, false);
			_time = time;
		}
		
		public override function clone():Event
		{
			return new SyncEvent(type, time);
		}
		
		public override function toString():String
		{
			return formatToString("ContentEvent", "type", "bubbles", "cancelable", "eventPhase");
		}
		
		public function get time():Number
		{
			return _time;
		}
	
	}

}